package com.java83.service.impl;

import java.util.List;

import cn.hutool.extra.mail.MailUtil;
import com.java83.domain.LzhServicer;
import com.java83.mapper.LzhServicerMapper;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageProperties;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.java83.mapper.LzhServiceLogMapper;
import com.java83.domain.LzhServiceLog;
import com.java83.service.LzhServiceLogService;

/**
 * 服务日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-02-23
 */
@Service
public class LzhServiceLogServiceImpl implements LzhServiceLogService
{
    @Autowired
    private LzhServiceLogMapper lzhServiceLogMapper;

    @Autowired
    RabbitTemplate rabbit;
    @Autowired
    LzhServicerMapper lzhServicerMapper;

    /**
     * 查询服务日志
     * 
     * @param id 服务日志主键
     * @return 服务日志
     */
    @Override
    public LzhServiceLog selectLzhServiceLogById(Long id)
    {
        return lzhServiceLogMapper.selectLzhServiceLogById(id);
    }

    /**
     * 查询服务日志列表
     * 
     * @param lzhServiceLog 服务日志
     * @return 服务日志
     */
    @Override
    public List<LzhServiceLog> selectLzhServiceLogList(LzhServiceLog lzhServiceLog)
    {
        return lzhServiceLogMapper.selectLzhServiceLogList(lzhServiceLog);
    }

    /**
     * 新增服务日志
     * 
     * @param lzhServiceLog 服务日志
     * @return 结果
     */
    @Override
    public int insertLzhServiceLog(LzhServiceLog lzhServiceLog)
    {
        return lzhServiceLogMapper.insertLzhServiceLog(lzhServiceLog);
    }

    /**
     * 修改服务日志
     * 
     * @param lzhServiceLog 服务日志
     * @return 结果
     */
    @Override
    public int updateLzhServiceLog(LzhServiceLog lzhServiceLog)
    {
        return lzhServiceLogMapper.updateLzhServiceLog(lzhServiceLog);
    }

    /**
     * 批量删除服务日志
     * 
     * @param ids 需要删除的服务日志主键
     * @return 结果
     */
    @Override
    public int deleteLzhServiceLogByIds(Long[] ids)
    {
        return lzhServiceLogMapper.deleteLzhServiceLogByIds(ids);
    }

    /**
     * 删除服务日志信息
     * 
     * @param id 服务日志主键
     * @return 结果
     */
    @Override
    public int deleteLzhServiceLogById(Long id)
    {
        return lzhServiceLogMapper.deleteLzhServiceLogById(id);
    }

    @Override
    public int updateLzhServiceLog2(int id) {
        return lzhServiceLogMapper.updateLzhServiceLog2(id);
    }
}
